# # 封装列表去重函数，传入一个列表，返回列表去重后的结果
# str1 = [1,2,3,4,2,34,2,31,2]
# str2 = {1,2,3,4,2,34,2,31,2}  # 集合可以去重
# str3 = (1,2,3,4,2,34,2,31,2)
# print(str1)
# print(str2)
# print(str3)
# str = {}
# str0 = [12,2,2,2,2,23,3,3,34]
# for x in str0:
from asyncio import gather

# list1 = [1, 2, 1, 3, 4, 2]
# list2 = []
# def qcount1():
#     for i in list1:
#         if i not in list2:
#             list2.append(i)
#     print(list2)

# list=[]
# def qcount2():
#     for i in range(len(list) - 1, -1, -1):
#         if list.count(i) > 1:
#             list.remove(i)
#     print(list)

# list1 = [1,1,1,2,2,2,3]
def qcount3():
    list2 = set(list1)
    print(list2)


if __name__ == '__main__':
#     list1 = [1,2,3,4,52,23,2,3,2,3,23,2,2,2,2,4,4,4,5,5,5,6,6,6,7,7,8]
#     list2 = []
#     qcount1()

#     list = [1,1,1,1,1,2,2,2]
#     qcount2()
    list1=[111,111,222,333,333,222]
    qcount3()

